import Vue from 'vue';
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import 'jquery';
import App from './App.vue';
import router from './router';
import store from './store';
import './registerServiceWorker';
import i18n from '@/locale';
// import $axios from '@/axios';

Vue.use(iView, {
  i18n: (key, value) => i18n.t(key, value),
});
// Vue.use($axios); //无需全局挂载
Vue.config.productionTip = false;


new Vue({
    router,
    store,
    i18n,
    render: h => h(App),
    data: {
        eventBus: new Vue(),
    },
}).$mount('#app');
